<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script>
    /* var i = 1;
    while(i<=9) {
        var j = 1;
        while(j<=i){
            document.write(i+ "*" + j + "=" + i*j + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp");
            j++;
        }
        i++;
        document.write("<hr/>")
    } */

    for(var i=1; i<=9; i++){
        for(var j=1; j<=i; j++){
            document.write(i+ "*" + j + "=" + i*j + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp");
        }
        document.write("<hr/>")
    }

    var arr = ["北京", "上海", "广州", "合肥"];
    for(var item in arr){
        document.write(arr[item] + "&nbsp;&nbsp;");
    }
</script>
<body>
    
</body>
</html>